/*
 *  CEMenu.h
 *  LID Library
 *
 *  Created by Alexander Trutchenko on 09/11/11.
 *  Copyright 2011 League of Independent Developers. All rights reserved.
 *
 */

#ifndef __CE_Menu_h__
#define __CE_Menu_h__

#include "cocos2d.h"


namespace cocosext {

/////////////////////////////////////////////////////
//
/** CEMenu 
* 
*/
/////////////////////////////////////////////////////


class CEMenu : public cocos2d::CCMenu
{
protected:
	int _touchPriority;

protected:
	CEMenu(): _touchPriority(cocos2d::kCCMenuTouchPriority) {;}
	CEMenu(int touchPriority): _touchPriority(touchPriority) {;}

public:
    virtual ~CEMenu() {;}

    static CEMenu* node(int touchPriority);
    static CEMenu* menuWithItems(int touchPriority, cocos2d::CCMenuItem* item, ...);
	static CEMenu* menuWithItem(int touchPriority, cocos2d::CCMenuItem* item);

public:
	virtual void setTouchPriority(int newPriority); 

//Cocos2d interface
	virtual void registerWithTouchDispatcher();

}; //CEMenu


}; // end namespace cocosext

#endif // __CE_Menu_h__
